package cn.hanxiaojun.action;


import java.sql.SQLException;
import java.util.ArrayList;

import cn.hanxiaojun.imple.Select;
import cn.hanxiaojun.model.Desk;

import com.opensymphony.xwork2.ActionSupport;

public class SelectDeskAction extends ActionSupport {
     
	//要接受从boardlist.jsp页面传过来的下拉框的name和value。
	//还有搜索里的
	 
     String sele;
     String shuru;
     ArrayList<Desk> list ;
	
	 public String execute() throws SQLException{
		
		 
	   //System.out.println(sele+shuru);
		 
		 Select a = new Select();
		 
		 list = a.select(sele, shuru);

		return SUCCESS;
		 
	 }

	public ArrayList<Desk> getList() {
		return list;
	}

	public String getSele() {
		return sele;
	}

	public void setSele(String sele) {
		this.sele = sele;
	}

	public String getShuru() {
		return shuru;
	}

	public void setShuru(String shuru) {
		this.shuru = shuru;
	}
	 
}
